﻿/****************************** Module Header ******************************\
 * Module Name:  DBUpdateAttribute.cs
 * Module Version:  1.0.0 (2014-4-15)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This class is used to the data access layer. It supplies public method to 
 * add a record to database or get a list from the datatable, the parameter
 * could be an data entity or a string sql statement.
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/
using System;

namespace UCL.Data
{
    /// <summary>
    /// 数据库升级属性
    /// </summary>
    /// <remarks>2014-4-15 1.0 by sutroon</remarks>
    [System.AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class DBUpdateAttribute : System.Attribute
    {
        /// <summary>
        /// 旧版本号
        /// </summary>
        public string OldVer { get; set; }

        /// <summary>
        /// 新版本号
        /// </summary>
        public string CurVer { get; set; }

        /// <summary>
        /// 更新语句
        /// </summary>
        public string SqlText { get; set; }
    }
}
